home *** CD-ROM | disk | FTP | other *** search
- function SetMode()
- {
- if(mode == 0)
- {
- mode_indicator.gotoAndStop("play_for_real_mode");
- }
- if(mode == 1)
- {
- mode_indicator.gotoAndStop("practice_mode");
- }
- if(mode == 2)
- {
- mode_indicator.gotoAndStop("offline_mode");
- }
- if(mode == 3)
- {
- mode_indicator.gotoAndStop("default_mode");
- }
- }
- function SetFloppyCheckBox()
- {
- if(FloppyCheck == 1)
- {
- CB_UseLogin.State = 1;
- CB_UseLogin.gotoAndStop("CHECKED");
- SetRadioButtons();
- }
- else
- {
- CB_UseLogin.State = 0;
- CB_UseLogin.gotoAndStop("UNCHECKED");
- RB_B.gotoAndStop("DISABLED");
- RB_A.gotoAndStop("DISABLED");
- }
- }
- function SetRadioButtons()
- {
- if(FloppyRadio == 0)
- {
- RB_A.State = 1;
- RB_A.gotoAndStop("CHECKED");
- RB_B.gotoAndStop("UNCHECKED");
- RB_B.State = 0;
- }
- if(FloppyRadio == 1)
- {
- RB_B.gotoAndStop("CHECKED");
- RB_B.State = 1;
- RB_A.gotoAndStop("UNCHECKED");
- RB_A.State = 0;
- }
- if(FloppyRadio == 2 || CB_UseLogin.State == 0)
- {
- RB_B.gotoAndStop("DISABLED");
- RB_B.State = 2;
- RB_A.gotoAndStop("DISABLED");
- RB_A.State = 2;
- }
- }
- function CheckBoxHit(cb)
- {
- trace("CheckBoxHit:" + cb._name);
- if(cb.State == 0 || cb.State eq "")
- {
- cb.State = 1;
- cb.gotoAndStop("CHECKED");
- SetRadioButtons();
- FloppyCheck = 1;
- }
- else
- {
- cb.State = 0;
- cb.gotoAndStop("UNCHECKED");
- RB_B.gotoAndStop("DISABLED");
- RB_A.gotoAndStop("DISABLED");
- FloppyCheck = 0;
- }
- fscommand("UseFloppy",cb.State);
- }
- function RadioButtonHit(rb)
- {
- trace("RadioHit:" + rb._name);
- if(rb.State == 0 || rb.State eq "")
- {
- rb.State = 1;
- rb.gotoAndStop("CHECKED");
- if(rb._name eq "RB_A")
- {
- RB_B.gotoAndStop("UNCHECKED");
- RB_B.State = 0;
- fscommand("UseDrive","A");
- FloppyRadio = 0;
- }
- else
- {
- RB_A.gotoAndStop("UNCHECKED");
- RB_A.State = 0;
- fscommand("UseDrive","B");
- FloppyRadio = 1;
- }
- }
- }
- function ButtonHit(btn)
- {
- trace("Button Hit:" + btn._name);
- if(btn._name eq "Login")
- {
- ldata = UserName + "/" + PassMov.Password;
- trace("Login:" + ldata);
- fscommand("Login",ldata);
- }
- if(btn._name eq "Register")
- {
- trace("Register");
- fscommand("button","Register");
- }
- if(btn._name eq "Exit")
- {
- trace("Exit");
- fscommand("button","Exit");
- }
- if(btn._name eq "Enter")
- {
- ldata = UserName + "/" + EmailWrapper.Email;
- trace("Enter:" + ldata);
- fscommand("Enter",ldata);
- }
- if(btn._name eq "Options")
- {
- trace("Options");
- fscommand("button","Options");
- }
- if(btn._name eq "Save")
- {
- trace("Save");
- fscommand("button","Save");
- }
- if(btn._name eq "Restore")
- {
- trace("Restore");
- fscommand("button","Restore");
- }
- if(btn._name eq "Return")
- {
- trace("Return");
- fscommand("button","Return");
- }
- if(btn._name eq "Next")
- {
- fscommand("button","Next");
- }
- if(btn._name eq "Reclaim")
- {
- fscommand("button","Reclaim");
- }
- }
- function SetUpLogin()
- {
- KeyBlock.SetScreenWatch(1);
- Login.gotoAndStop("ACTIVE");
- Register.gotoAndStop("ACTIVE");
- Exit.gotoAndStop("ACTIVE");
- Options.gotoAndStop("ACTIVE");
- Reclaim.gotoAndStop("ACTIVE");
- SetMode();
- SetFloppyCheckBox();
- _focusrect = false;
- Selection.setFocus("UserName");
- }
- function SetUpInfo()
- {
- KeyBlock.SetScreenWatch(2);
- Selection.setFocus("_level0.DummyText");
- SetRadioButtons();
- Save.gotoAndStop("ACTIVE");
- Restore.gotoAndStop("ACTIVE");
- Return.gotoAndStop("ACTIVE");
- ScrollText.Text = InfoText;
- }
- function SetUpPractice()
- {
- KeyBlock.SetScreenWatch(4);
- Enter.gotoAndStop("ACTIVE");
- Exit.gotoAndStop("ACTIVE");
- _focusrect = false;
- Selection.setFocus("UserName");
- if(NeedEmail)
- {
- EmailWrapper.gotoAndStop("active");
- }
- }
- function MessageBox()
- {
- KeyBlock.SetScreenWatch(3);
- MsgBox.gotoAndStop(MessageType);
- MsgBox._visible = true;
- _root.LastScreen = _root._currentframe;
- _root.gotoAndStop("BLANK");
- Selection.setFocus("_level0.DummyText");
- }
- function SetButtonState()
- {
- eval(TargetButton).gotoAndStop(TargetState);
- }
- function Confirm(yes)
- {
- trace("MessageBox:" + yes);
- fscommand("MessageBox",yes);
- gotoAndStop(LastScreen);
- if(int(LastScreen) == 2)
- {
- SetUpMode();
- }
- if(int(LastScreen) == 8)
- {
- SetUpLogin();
- }
- if(int(LastScreen) == 18)
- {
- SetUpPractice();
- }
- if(int(LastScreen) == 29)
- {
- SetUpInfo();
- }
- MsgBox._visible = false;
- MsgBox.gotoAndStop(1);
- }
- EnterBlocked = false;
- MsgBox._visible = false;
- var OKVal = "OK";
- var ConfirmNo = "No";
- var ConfirmYes = "Yes";
- var CancelVal = "Cancel";
- var FloppyCheck = 0;
- var FloppyRadio = 0;
- var LastScreen;
- var mode = 0;
- var Version = getVersion();
- Version = Version.split(" ");
- Version = Version[1].split(",");
- Version = Version[0];
- _root.DummyText = "\'" + Version + "\'";
-